package com.xbj.mapper;

import com.xbj.domain.User;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;
import java.util.Map;

public interface UserMapper extends Mapper<User> {

    User getUserByUserName(String userName);

    void deleteBatchByIds(@Param("ids") String[] idsStr);

    void deleteUserRoleByUserId(int userId);

    void saveUserRole(@Param("list") List<Map<String, Integer>> params);

    public String findNameById(Integer userId);
}
